#执行简单测试
# from langchain_core.prompts import ChatPromptTemplate
#
# print(ChatPromptTemplate.from_template("Hello 欢迎来到小弟课堂-AI大模型开发课程 {title}!").format(title=",干就完了"))
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
    model_name="qwen-plus",
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
    api_key="sk-4f1498f1c0314ba79ea2919bd7a02c4d",
    temperature=0.7
)
response = llm.invoke("你是谁")

print(response)

age:int = 18